package day8;

/**
 * @Author juzipi
 * @Date 2021/6/13 20:15
 * @Info
 */
public class ClassMethod {

    public static void main(String[] args) {
        get();
        Person1 person1 = new Person1();
        person1.age = 10;
        person1.name = "张三";
        person1.sex = "女";
        System.out.println(person1.sex+person1.age+person1.name);

    }

    private static int i = 0;

    private static int get(){
        i++;
        if (i > 10){
            return 10;
        }
        System.out.println("互相调用");
        int gets = gets();
        return gets;
    }

    private static int gets(){
        i++;
        System.out.println("到哪");
        if (i>10){
            return 10;
        }
        get();
        return i;
    }

}

class Person1{
    String name;
    int age;
    String sex;


}
